package com.lanyam.travel.base.entity.vo;

import java.math.BigDecimal;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.lanyam.travel.base.entity.Permission;
import com.lanyam.travel.base.entity.Role;
import com.lanyam.travel.base.entity.User;
import lombok.Data;

@Data
public class UserVo extends User{

	@JsonProperty(value="roleName")
    private String roleName;
    
	@JsonProperty(value="role")
	private Role role;
	
	@JsonProperty(value="permissions")
	private List<Permission> permissions;

	@JsonProperty(value="supplyName")
	private String supplyName;

	/**
	 * 订单数量
	 */
	@JsonProperty(value="orderNum")
	private Integer orderNum;

	/**
	 * 订单金额
	 */
	@JsonProperty(value="orderAmount")
	private BigDecimal orderAmount;

	public String getSupplyName() {
		return supplyName;
	}

	public void setSupplyName(String supplyName) {
		this.supplyName = supplyName;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public List<Permission> getPermissions() {
		return permissions;
	}

	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
	
	
}
